using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository.Mapping
{
       
    class   InstructionDetailMap : ClassMap<InstructionDetail>
    {

        public InstructionDetailMap()
            {
                Table("INSTRUCTION_DETAIL");
                Id(x => x.InstructionDetailID,"INSTRUCTION_DETAIL_ID").GeneratedBy.Native();

                Map(x => x.InstructionHeaderID,"INSTRUCTION_HEADER_ID");
 Map(x => x.InstrumentHeaderID,"INSTRUMENT_HEADER_ID");
 Map(x => x.InstrumentPurchaseID,"INSTRUMENT_PURCHASE_ID");
 Map(x => x.InstrumentTransactionID,"INSTRUMENT_TRANSACTION_ID");
 Map(x => x.InstructionNOTransactionType,"INSTRUCTION_NO_TRANSACTION_TYPE");
 Map(x => x.InstructionNOInstructionCounterpartyName,"INSTRUCTION_NO_INSTRUCTION_COUNTERPARTY_NAME");
 Map(x => x.InstructionNOInstructionCounterpartyID,"INSTRUCTION_NO_INSTRUCTION_COUNTERPARTY_ID");
 Map(x => x.InstructionNOIssuerTerm,"INSTRUCTION_NO_ISSUER_TERM");
 Map(x => x.InstructionNOTradeDate,"INSTRUCTION_NO_TRADE_DATE");
 Map(x => x.InstructionNOSettlementDate,"INSTRUCTION_NO_SETTLEMENT_DATE");
 Map(x => x.InstructionNOUnit,"INSTRUCTION_NO_UNIT");
 Map(x => x.InstructionNOPar,"INSTRUCTION_NO_PAR");
 Map(x => x.InstructionNOYield,"INSTRUCTION_NO_YIELD");
 Map(x => x.InstructionNOCouponPaymentDate,"INSTRUCTION_NO_COUPON_PAYMENT_DATE");
 Map(x => x.InstructionNOCoupon,"INSTRUCTION_NO_COUPON");
 Map(x => x.InstructionNOPurchaseValue,"INSTRUCTION_NO_PURCHASE_VALUE");
 Map(x => x.InstructionCounterpartyName,"INSTRUCTION_COUNTERPARTY_NAME");
 Map(x => x.InstructionCounterpartyID,"INSTRUCTION_COUNTERPARTY_ID");
 Map(x => x.InstructionRefNO,"INSTRUCTION_REF_NO");
 Map(x => x.MaturityDate,"MATURITY_DATE");

            }


    }

}